import { newRequest } from '@/utils/newRequest'

export function getBoardGridList(params) {
    return newRequest({
        url: '/api/Doing/GetBoardGridList',
        method: 'get',
        params: {
            ...params
        }
    })
}
//获取当前格子的详情
export function getBoardGridDetailByGridId(params) {
    return newRequest({
        url: '/api/Doing/GetBoardGridDetailByGridId',
        method: 'get',
        params: {
            ...params
        }
    })
}

//获取可以过站产品的详情
export function getOrderProductOfFullBoard(params) {
    return newRequest({
        url: '/api/Doing/GetOrderProductOfFullBoard',
        method: 'get',
        params: {
            ...params
        }
    })
}


//扫描照片
export function scanGridPhoto(data) {
    return newRequest({
        url: '/api/Doing/ScanBoardGridPhoto',
        method: 'post',
        data: {
            ...data
        }
    })
}
// 清空格子
export function cleanPhotoGrid(data) {
    return newRequest({
        url: '/api/Doing/CleanPhotoGrid',
        method: 'post',
        data: {
            ...data
        }
    })
}

//提交过站
export function commitTechOrderProductByTechType(data) {
    return newRequest({
        url: '/api/Doing/CommitTechOrderProductByTechType',
        method: 'post',
        data: {
            ...data
        }
    })
}


// 打印详情
export function getBoardGridDOfPrintInfoByGridId(params) {
    return newRequest({
        url: '/api/Doing/GetBoardGridDOfPrintInfoByGridId',
        method: 'get',
        params: {
            ...params
        }
    })
}

